package com.cloudfun.campusshare.repo;

import com.cloudfun.campusshare.entity.InvokeHistoryEntity;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

public interface InvokeHistoryEntityRepo extends
        PagingAndSortingRepository<InvokeHistoryEntity, String>,
        JpaSpecificationExecutor<InvokeHistoryEntity> {

    List<InvokeHistoryEntity> findAllByDeviceIdOrderByCreateTime(String deviceId);

    InvokeHistoryEntity findByOrderId(String orderId);
}
